global mucus, PeakDayNo, candidateStamp, stamp, dayNo, relations
if the doubleClick then
exit
end if
set x to count(mucus)
cursor(4)
if ((the clickOn - 10) > 1) and ((the clickOn - 10) < 7) then
killAnovul()
end if
if (candidateStamp = 6) and (((the clickOn - 10) > 1) and ((the clickOn - 10) < 7)) then
cursor(0)
set the visible of sprite 11 to 0
alert("You chose the Yellow Stamp, but then chose a mucus with fertile characteristics. If the mucus has the characteristics you selected, choose the White Baby Stamp.")
set the visible of sprite 11 to 1
go("chart stamp")
exit
end if
if (candidateStamp = 4) and (((the clickOn - 10) > 1) and ((the clickOn - 10) < 7)) then
cursor(0)
set the visible of sprite 11 to 0
alert("You chose the Yellow Baby Stamp, but then chose a mucus with fertile characteristics. If the mucus has the characteristics you selected, choose the White Baby Stamp.")
set the visible of sprite 11 to 1
go("chart stamp")
exit
end if
if x > 0 then
if (getAt(mucus, x) > 1) and (getAt(mucus, x) < 7) then
if ((the clickOn - 10) > 1) and ((the clickOn - 10) < 7) then
if (getAt(stamp, x) = 3) and (candidateStamp > 3) then
cursor(0)
set the visible of sprite 11 to 0
alert("You chose a Yellow Baby stamp, but then chose a mucus that was similar to the previous days. Please change either your stamp or mucus selection.")
set the visible of sprite 11 to 1
go("chart stamp")
else
append(relations, 0)
append(stamp, candidateStamp)
append(mucus, the clickOn - 10)
showDays()
setupDayBook()
end if
else
if (getAt(stamp, x) = 3) and (candidateStamp = 3) then
cursor(0)
set the visible of sprite 11 to 0
alert("The mucus you selected for this day is distinctly different from the mucus chosen for the day before. If the mucus selection was correct, Peak Day has occured. Please select the Yellow Baby Stamp. ")